package com.jx.springcloud.service;


import com.jx.springcloud.entiy.CommentResult;
import com.jx.springcloud.entiy.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUND-PAYMENT-SERVICE")
public interface FeignService {
    @GetMapping(value = "/getUser/{id}")
     CommentResult<User> getUser(@PathVariable("id") Long id);

    @GetMapping(value = "/getTimeout")
    String getPortTimeout();
}
